<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table{
            border: 1px solid #000;
            /* 去掉单元格与单元格的距离 表格两边框合为一条 */
            border-collapse: collapse;
            /* 控制单元格与单元格的距离 */
            border-spacing: 20px;
        }
        tr,th,td{
            border: 1px solid #000;
        }
    </style>
</head>
<body>
    <table>
        <thead>
            <tr>
                <th>id</th>
                <th>姓名</th>
                <th>年龄</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>1001</td>
                <td>刘德华</td>
                <td>20</td>
            </tr>
            <tr>
                <td>1002</td>
                <td>刘德华</td>
                <td>20</td>
            </tr>
            <tr>
                <td>1003</td>
                <td>刘德华</td>
                <td>20</td>
            </tr>
        </tbody>
    </table>
</body>
</html>